<?php echo $header;?>
<div id="content">
  <div class="box">
   <div class="heading">
      <h1><img src="view/image/information.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>
    </div>
     <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
		<table class="form">
         <tr>
          	<td><span class="required">*</span> <?php echo "accessToken:"; ?></td>
            <td ><select name="common_id">
            <?php foreach ($commons as $common){?>
            	<?php if($common_id==$common["common_id"]){?>
            	<option selected="selected" value="<?php echo $common["common_id"];?>"><?php echo $common["common_name"];?></option>
            	<?php }else{ ?>
            	<option  value="<?php echo $common["common_id"];?>"><?php echo $common["common_name"];?></option>
            	<?php }?>
            <?php }?>	
		            </select>
					</td>
			      </tr>
			      <tr>
		    <td><span class="required">*</span> <?php echo "关键词:"; ?></td>
            	<td ><input   id="keyword" name="keyword" value="<?php echo $keyword;?>">
			</td>
	      </tr> 
			      
			      
	       <tr>
            <td><?php echo $entry_status; ?></td>
            <td><select name="status">
                <?php if ($status==1) { ?>
                <option value="0"><?php echo $text_disabled; ?></option>
                <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                <?php } else { ?>
                <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                <option value="1"><?php echo $text_enabled; ?></option>
                <?php } ?>
              </select></td>
          </tr>
			      
        </table>


      </form>
      </div>
  </div>
  </div>
  
  
<script type="text/javascript" src="view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript"><!--
$('.fancybox').fancybox({
	width: 860,
	height: 360,
	autoDimensions: true,
	scrolling: 'no',
	onClosed:function() {
		//location.reload();
	}
});
//--></script> 
  

<?php echo $footer;?>
